package com.packet.config;

public class InformAllBuilder implements IBuildInform {
    private Inform inform;

    public InformAllBuilder(){
        inform = new Inform();
    }

    @Override
    public void buildinfo(){
        inform.setInfo("信息:作业存在错误");
    }

    @Override
    public void buildFromName(){
        inform.setFromName("发布人：王老师");
    }

    @Override
    public void buildToName(){
        inform.setToName("接收人：第二组全体成员");
    }

    @Override
    public void buildWhenTime(){
        inform.setWhenTime("发布时间：2024-06-26");
    }

    @Override
    public Inform createInform(){
        return inform;
    }

}